import axios from '../request/axios.js'

export const getProductList = (data) => {
  return axios({
    url: "/getProductList?page="+data.page+"&page_size="+data.page_size+"&plan_id="+data.plan_id+"&first_category="+data.first_category +"&second_category="+data.second_category,
    method: "get"
  })
}

export const getProductInfo = (id) => {
  return axios({
    url: "/getProductInfo?id=" + id,
    method: "get"
  })
}

export const getCategoryList = () => {
  return axios({
    url: "/getCategoryList",
    method: "get",
  })
}

export const getSecondCategory = (id) => {
  return axios({
    url: "/getSecondCategory?id=" + id,
    method: "get"
  })
}
